package com.lineage.echo;

import com.lineage.server.serverpackets.OpcodesServer;

public class OpcodesClient {
  public static final int C_OPCODE_TRADE = 2;
  
  public static final int C_OPCODE_BOOKMARKDELETE = 3;
  
  public static final int C_OPCODE_BUDDYLIST = 4;
  
  public static final int C_OPCODE_FIGHT = 5;
  
  public static final int C_OPCODE_USESKILL = 6;
  
  public static final int C_OPCODE_CHANGECHAR = 7;
  
  public static final int C_OPCODE_BOARD = 10;
  
  public static final int C_OPCODE_COMMONCLICK = 16;
  
  public static final int C_OPCODE_AMOUNT = 11;
  
  public static final int C_OPCODE_PWD = 13;
  
  public static final int C_OPCODE_CLIENTVERSION = 14;
  
  public static final int C_OPCODE_EMBLEM = 18;
  
  public static final int C_OPCODE_TAXRATE = 19;
  
  public static final int C_OPCODE_SELECTLIST = 20;
  
  public static final int C_OPCODE_DROPITEM = 25;
  
  public static final int C_OPCODE_LOGINTOSERVEROK = 26;
  
  public static final int C_OPCODE_MOVECHAR = 29;
  
  public static final int C_OPCODE_LEAVEPARTY = 33;
  
  public static final int C_OPCODE_NPCTALK = 34;
  
  public static final int C_OPCODE_TRADEADDITEM = 37;
  
  public static final int C_OPCODE_SHOP = 38;
  
  public static final int C_OPCODE_CHATGLOBAL = 40;
  
  public static final int C_OPCODE_DOOR = 41;
  
  public static final int C_OPCODE_PARTY = 43;
  
  public static final int C_OPCODE_DRAWAL = 44;
  
  public static final int C_OPCODE_GIVEITEM = 45;
  
  public static final int C_OPCODE_PRIVATESHOPLIST = 47;
  
  public static final int C_OPCODE_PROPOSE = 50;
  
  public static final int C_OPCODE_CHECKPK = 51;
  
  public static final int C_OPCODE_TELEPORT = 52;
  
  public static final int C_OPCODE_TELEPORT2 = 246;
  
  public static final int C_OPCODE_DEPOSIT = 56;
  
  public static final int C_OPCODE_LEAVECLANE = 61;
  
  public static final int C_OPCODE_FISHCLICK = 62;
  
  public static final int C_OPCODE_RANK = 63;
  
  public static final int C_OPCODE_PLEDGE = 68;
  
  public static final int C_OPCODE_BANCLAN = 69;
  
  public static final int C_OPCODE_TRADEADDOK = 71;
  
  public static final int C_OPCODE_CLAN = 72;
  
  public static final int C_OPCODE_CLAN_RECOMMEND = 76;
  
  public static final int C_OPCODE_PLEDGECONTENT = 78;
  
  public static final int C_OPCODE_NEWCHAR = 84;
  
  public static final int C_OPCODE_TRADEADDCANCEL = 86;
  
  public static final int C_OPCODE_MAIL = 87;
  
  public static final int C_OPCODE_TITLE = 90;
  
  public static final int C_OPCODE_KEEPALIVE = 95;
  
  public static final int C_OPCODE_CHARRESET = 98;
  
  public static final int C_OPCODE_PETMENU = 103;
  
  public static final int C_OPCODE_PICKUPITEM = 112;
  
  public static final int C_OPCODE_BOARDREAD = 114;
  
  public static final int C_OPCODE_FIX_WEAPON_LIST = 118;
  
  public static final int C_OPCODE_EXTCOMMAND = 120;
  
  public static final int C_OPCODE_ATTR = 121;
  
  public static final int C_OPCODE_QUITGAME = 122;
  
  public static final int C_OPCODE_ARROWATTACK = 123;
  
  public static final int C_OPCODE_NPCACTION = 125;
  
  public static final int C_OPCODE_CASTLESECURITY = 128;
  
  public static final int C_OPCODE_CLANATTENTION = 129;
  
  public static final int C_OPCODE_CHAT = 136;
  
  public static final int C_OPCODE_LOGINTOSERVER = 137;
  
  public static final int C_OPCODE_DELETEINVENTORYITEM = 138;
  
  public static final int C_OPCODE_BOARDWRITE = 141;
  
  public static final int C_OPCODE_BOARDDELETE = 153;
  
  public static final int C_OPCODE_RESULT = 161;
  
  public static final int C_OPCODE_DELETECHAR = 162;
  
  public static final int C_OPCODE_USEITEM = 164;
  
  public static final int C_OPCODE_BOOKMARK = 165;
  
  public static final int C_OPCODE_EXCLUDE = 171;
  
  public static final int C_OPCODE_EXIT_GHOST = 173;
  
  public static final int C_OPCODE_RESTART = 177;
  
  public static final int C_OPCODE_CHATWHISPER = 184;
  
  public static final int C_OPCODE_CALL = 185;
  
  public static final int C_OPCODE_JOINCLAN = 194;
  
  public static final int C_OPCODE_CAHTPARTY = 199;
  
  public static final int C_OPCODE_DELBUDDY = 202;
  
  public static final int C_OPCODE_WHO = 206;
  
  public static final int C_OPCODE_ADDBUDDY = 207;
  
  public static final int C_OPCODE_BEANFUNLOGINPACKET = 210;
  
  public static final int C_OPCODE_ENTERPORTAL = 219;
  
  public static final int C_OPCODE_CREATECLAN = 222;
  
  public static final int C_OPCODE_SELECTTARGET = 223;
  
  public static final int C_OPCODE_CHANGEHEADING = 225;
  
  public static final int C_OPCODE_WAR = 227;
  
  public static final int C_OPCODE_ATTACK = 229;
  
  public static final int C_OPCODE_CREATEPARTY = 230;
  
  public static final int C_OPCODE_SHIP = 231;
  
  public static final int C_OPCODE_CHARACTERCONFIG = 244;
  
  public static final int C_OPCODE_SMS = 253;
  
  public static final int C_OPCODE_WINDOWS = 254;
  
  public static final int C_OPCODE_BANPARTY = 255;
  
  public static final int C_OPCODE_SKILLBUY = 145;
  
  public static final int C_OPCODE_SKILLBUYOK = 39;
  
  public static final int C_OPCODE_SKILLBUYITEM = 245;
  
  public static final int C_OPCODE_USEPETITEM = 104;
  
  public static final int C_OPCODE_HIRESOLDIER = 1411;
  
  public static final int C_OPCODE_CHANGEWARTIME = 1443;
  
  public static final int C_OPCODE_PUTSOLDIER = 1453;
  
  public static final int C_OPCODE_SELECTWARTIME = 1463;
  
  public static final int C_OPCODE_PUTBOWSOLDIER = 1473;
  
  public static final int C_OPCODE_LOGINPACKET = 119;
  
  public static final int C_OPCODE_BOARDBACK = 23;
  
	protected static final int _seed = 0x70254d0a; // 363C_TW
	
	protected static final byte[] _firstPacket = { // 封包输出不需要演算
		(byte) 0x12, // 全部封包长度
		(byte) 0x00,
		// 改版时不需要变动以上2个BYTE, S_OPCODE_INITOPCODE=150
		(byte) OpcodesServer.S_OPCODE_INITOPCODE, // 初始化封包*/
	
		// 3.80
		(byte) 0x0a,(byte) 0x4d,(byte) 0x25,(byte) 0x70,
		(byte) 0x9d, (byte) 0xd1, (byte) 0xd6, (byte) 0x7a, 
		(byte) 0xf4, (byte) 0x62, (byte) 0xe7, (byte) 0xa0, 
		(byte) 0x66, (byte) 0x02, (byte) 0xfa
		 
		};
}